Detects when a new object is created inside a loop
